<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>胖虎的飞机大战</title>
  <style>
    /* 样式重置 */
    * {
      padding: 0;
      margin: 0;
    }

    canvas {
      border: 1px solid red;
    }

    #stage {
      width: 480px;
      height: 650px;
      margin: 0 auto;
    }

    #changebgbutton {
      position: relative;
      top: 675px;
      left: 720px;
    }
  </style>
</head>

<body>
  <button id="changebgbutton" onclick="changebg()">点我切换背景</button>
  <div id="stage">
    <!-- <canvas id="canvas" width="480" height="650"></canvas> -->
  </div>
  <script type="module" >
    import create from "./main.js";
    
    console.log(create())
    create(document.getElementById('stage'));
  </script>
  
</body>

</html>